package com.zyh.service.impl;

import com.zyh.entity.School;
import com.zyh.mapper.SchoolMapper;
import com.zyh.service.SchoolService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;
@Service
public class SchoolServiceImpl implements SchoolService {
    @Autowired
    SchoolMapper mapper;
    @Override
    public void insert(School school) {
        mapper.insert(school);
    }

    @Override
    public void delete(int id) {
        mapper.delete(id);
    }

    @Override
    public void update(School school) {
        mapper.update(school);
    }

    @Override
    public School selectById(int id) {
        return mapper.selectById(id);
    }

    @Override
    public List<School> selectAll() {
        return mapper.selectAll();
    }
}
